package online.chazi.bootplus.multiple.datasource;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 说明：作者很懒，什么都没留下
 * Created by 叉子同学 on 2020-05-12 15:17
 */
@ConfigurationProperties(prefix = "multiple-datasource")
public class MultipleDataSourceProperties {

    private String primary;
    private Class<?> loadBalanceRouter;
    private List<BalanceDataSourceProperties> sources;

    public String getPrimary() {
        return primary;
    }

    public void setPrimary(String primary) {
        this.primary = primary;
    }

    public Class<?> getLoadBalanceRouter() {
        return loadBalanceRouter;
    }

    public void setLoadBalanceRouter(Class<?> loadBalanceRouter) {
        this.loadBalanceRouter = loadBalanceRouter;
    }

    public List<BalanceDataSourceProperties> getSources() {
        return sources;
    }

    public void setSources(List<BalanceDataSourceProperties> sources) {
        this.sources = sources;
    }

}
